package com.woniu.common.vo;

import com.woniu.common.pojo.Order;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.ArrayList;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Document(indexName = "order")
public class OrderAggregate {
    private static final long serialVersionUID = 1L;
    @Id
    private String oid; // 共享的 ID
    private List<Order> orders = new ArrayList<>(); // 存储相同 ID 的订单列表
}
